<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var a = 123;
        var result = typeof a;
        console.log(result);

        // typeof 也是运算符，获取值的类型
        console.log(typeof a);

        // 计算a + 1
         a = a + 1;
        // 或者var num;
        // num = a + 1;

        console.log(a);
		var b = 8;
		var big = a > b ? a : b;
		console.log(big);
		
		var q = 20;
		if(q > 10 && q <= 25){
			alert("q大于10，小于25");
		}
		var age = 100;
		if(age >= 100){
			alert("太会睡了~");
		}else if(age > 50){
			alert("你已经老了~");
		}else if(age > 17){
			alert("你已经成年了");
		}else{
			alert("你还是从前那个少年");
			}
	
    </script>

</head>
<body>

</body>
</html>